$(function (){
	WindowHeight(0);setTimeout("WindowHeight(-1)",500);
});


// 检测表单
function CheckForm(){
	if ($id('theme').value == ""){alert("标题不能为空");$id('theme').focus();return false}
	if ($id('typeStr').value == ""){alert("请选择分类");$id('typeStr').focus();return false}
	return true
}


// 检查加粗
function CheckThemeB(){
	if ($id("themeB").checked){
		$id("theme").style.fontWeight="bold";
	}else{
		$id("theme").style.fontWeight="normal";
	}
}
